import service from '@/utils/request'

// @Tags ArchiveFile
// @Summary 创建档案文件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveFile true "创建档案文件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /archiveFile/createArchiveFile [post]
export const createArchiveFile = (data) => {
  return service({
    url: '/archiveFile/createArchiveFile',
    method: 'post',
    data
  })
}

// @Tags ArchiveFile
// @Summary 删除档案文件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveFile true "删除档案文件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveFile/deleteArchiveFile [delete]
export const deleteArchiveFile = (params) => {
  return service({
    url: '/archiveFile/deleteArchiveFile',
    method: 'delete',
    params
  })
}

// @Tags ArchiveFile
// @Summary 批量删除档案文件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除档案文件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveFile/deleteArchiveFile [delete]
export const deleteArchiveFileByIds = (params) => {
  return service({
    url: '/archiveFile/deleteArchiveFileByIds',
    method: 'delete',
    params
  })
}

// @Tags ArchiveFile
// @Summary 更新档案文件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveFile true "更新档案文件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /archiveFile/updateArchiveFile [put]
export const updateArchiveFile = (data) => {
  return service({
    url: '/archiveFile/updateArchiveFile',
    method: 'put',
    data
  })
}

// @Tags ArchiveFile
// @Summary 用id查询档案文件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ArchiveFile true "用id查询档案文件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /archiveFile/findArchiveFile [get]
export const findArchiveFile = (params) => {
  return service({
    url: '/archiveFile/findArchiveFile',
    method: 'get',
    params
  })
}

// @Tags ArchiveFile
// @Summary 分页获取档案文件列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取档案文件列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /archiveFile/getArchiveFileList [get]
export const getArchiveFileList = (params) => {
  return service({
    url: '/archiveFile/getArchiveFileList',
    method: 'get',
    params
  })
}
